url = 'https://www.acwing.com/problem/content/792/'

import sys
EPS = 1e-8

x = float(input())
l, r = -100.0, 100.0
while r - l > EPS:
    mid = (l + r) / 2
    if mid * mid * mid >= x:
        r = mid
    else:
        l = mid

print('{:.6f}'.format(l))


import math 

n = float(input())
flag = True
if n < 0:
    flag = False
    
res = abs(n)**(1/3)
if flag:
    print("{:.6f}".format(res))
else:
    print("-{:.6f}".format(res))